<div class="span2">
    <div class="sidebar-nav">

        <?php if ($_SESSION['admindata']['q'] == '文章管理' || $_SESSION['admindata']['q'] == '最高权限') { ?>
            <div class="nav-header" data-toggle="collapse" data-target="#menu6">
                <i class="icon-dashboard"></i>文章管理
            </div>
            <ul id="menu6" class="nav nav-list collapse in">
                <li><a href="newslist.php">新闻管理</a></li>
                <li><a href="typelist.php">分类管理</a></li>
                <li><a href="add_article.php">新增文章</a></li>
                <li><a href="weixin.php">微信导入</a></li>
                <li><a href="miaopai.php">秒拍视频导入</a></li>
                <li><a href="article.php">板块管理</a></li>
                <li><a href="about.php">关于设置</a></li>
                <li><a href="version.php">版本控制</a></li>
                <li><a href="article_trash.php">文章回收站</a></li>
                <li><a href="addpublish.php">发布动态(图文发布)</a></li>
                <li><a href="addVideo.php">发布动态(视频发布)</a></li>
                <li><a href="review.php" style="color: red;">未审核列表</a></li>
                <li><a href="code_list.php" style="color: crimson;">已审核列表</a></li>
                <li><a href="publish_list.php" style="color: green;">已发布列表</a></li>
                <li><a href="wait_article1.php" style="color: blue;">待发布(可查看)</a></li>
                <li><a href="wait_article_117.php" style="color: blue;">待发布(挂机勿点)</a></li>
            </ul>
        <?php } ?>
        
        <?php if ($_SESSION['admindata']['q'] == 'CPS管理' || $_SESSION['admindata']['q'] == '最高权限') { ?>
        <?php } ?>

        <?php if ($_SESSION['admindata']['q'] == '会员管理' || $_SESSION['admindata']['q'] == '最高权限') { ?>
            <div class="nav-header" data-toggle="collapse" data-target="#menu3">
                <i class="icon-dashboard"></i>会员管理
            </div>
            <ul id="menu3" class="nav nav-list collapse in">
                <li><a href="user.php">会员管理</a></li>
                <li><a href="adduser.php">添加会员</a></li>
                <li><a href="user_score_detail.php">会员积分明细</a></li>
                <li><a href="user_share_score.php">会员分享积分明细</a></li>
                <li><a href="adstatistics.php" style="color: red">分享统计</a></li>
                <li><a href="sharecount.php">ip入库分析</a></li>
                <li><a href="banuser.php">禁言列表</a></li>
                <li><a href="ban.php">封号列表</a></li>
                <li><a href="analysis.php">用户分析</a></li>
                <li><a href="questionList.php">意见反馈列表</a></li>
                <li><a href="common_question.php">常见问题列表</a></li>
            </ul>
        <?php } ?>

        <?php if ($_SESSION['admindata']['q'] == '分享域名管理' || $_SESSION['admindata']['q'] == '最高权限') { ?>
            <div class="nav-header" data-toggle="collapse" data-target="#menu4">
                <i class="icon-dashboard"></i>分享域名管理
            </div>
            <ul id="menu4" class="nav nav-list collapse in">
                <li><a href="add_sharesite.php">分享域名添加</a></li>
                <li><a href="sharesite.php">分享域名管理</a></li>
                <li><a href="sharesite_trash.php">分享域名回收站</a></li>
            </ul>
        <?php } ?>

        <?php if ($_SESSION['admindata']['q'] == '文章域名管理' || $_SESSION['admindata']['q'] == '最高权限') { ?>
            <div class="nav-header" data-toggle="collapse" data-target="#menu5">
                <i class="icon-dashboard"></i>文章域名管理
            </div>
            <ul id="menu5" class="nav nav-list collapse in">
                <li><a href="add_domain.php">文章域名添加</a></li>
                <li><a href="domainChange.php">收徒下载</a></li>
                <li><a href="domain.php">文章域名管理</a></li>
                <li><a href="domain_trash.php">文章域名回收站</a></li>
            </ul>
        <?php } ?>

        <?php if ($_SESSION['admindata']['q'] == '财务管理' || $_SESSION['admindata']['q'] == '最高权限') { ?>
            <div class="nav-header" data-toggle="collapse" data-target="#menu7">
                <i class="icon-dashboard"></i>财务管理
            </div>
            <ul id="menu7" class="nav nav-list collapse in">
                <li><a href="txlist0.php">等待提现</a></li>
                <li><a href="txlist1.php">已经提现</a></li>
                <li><a href="txlist2.php">拒绝支付</a></li>
                <li><a href="txcount.php">财务统计</a></li>
            </ul>
        <?php } ?>

        <?php if ($_SESSION['admindata']['q'] == '统计报表' || $_SESSION['admindata']['q'] == '最高权限') { ?>
            <div class="nav-header" data-toggle="collapse" data-target="#menu8">
                <i class="icon-dashboard"></i>统计报表
            </div>
            <ul id="menu8" class="nav nav-list collapse in">
                <li><a href="refererlist.php"><font color=red>访问统计</font></a></li>
                <li><a href="tongjilist.php">日段统计</a></li>
                <li><a href="koulist.php">扣量统计</a></li>
            </ul>
        <?php } ?>

        <?php if ($_SESSION['admindata']['q'] == '网站设置' || $_SESSION['admindata']['q'] == '最高权限') { ?>
            <div class="nav-header" data-toggle="collapse" data-target="#menu1">
                <i class="icon-dashboard"></i>网站设置
            </div>
            <ul id="menu1" class="nav nav-list collapse in">
                <li><a href="set.php">参数设置</a></li>
                <li><a href="addlist.php">广告设置</a></li>
                <li><a href="datasql.php">SQL数据</a></li>

                <!--
                <li ><a href="tpl.php">模板管理</a></li>
                -->
            </ul>
        <?php } ?>
    </div>
</div>
<?php
$today = date("Y-m-d", time());
$yestoday = date("Y-m-d", strtotime("-1 day"));
$today_ip = $mysql->query("select * from `tongjidata` where `day`='{$today}' limit 1");
$yestoday_ip = $mysql->query("select * from `tongjidata` where `day`='{$yestoday}' limit 1"); ?>
<script>
    $(document).ready(function () {
        $("#today_ip").html(<?php echo $today_ip[0]['ip']?>);
        $("#yestoday_ip").html(<?php echo $yestoday_ip[0]['ip']?>);
    });
</script>